#include "predator.h"
#include "environment.h"
#include <stdlib.h>
#include <iostream>

Predator::Predator( Environment * newEnv ) : Animal(newEnv) {}

// Function that returns the action chosen by the predator
int Predator::move() {
	// Predator looks at the world ( it doesn't )

	// Predator decides his new move ( 5 total moves )
	int newMove = rand() % 5;
	return newMove;
}

// Function to increase the reward given to the predator
// Can have side-effects for learning purpouses
void Predator::addReward( int value ) {
	reward += value;
}

// Returns reward of the predator
int Predator::getReward() {
    return reward;
}
